package com.umeox.phone.service;

import static android.telephony.TelephonyManager.EXTRA_INCOMING_NUMBER;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.util.Log;

import androidx.annotation.Nullable;

import com.umeox.phone.receiver.BasePhoneStateListener;
import com.umeox.phone.util.CacheUtils;

import java.util.Arrays;

/**
 * 拉起进程
 */
public class PhoneStateService extends Service {

    private static final String TAG = "PhoneStateService";
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }


    @Override
    public void onCreate() {
        super.onCreate();
        Log.d(TAG, "onCreate: "+this);
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        Log.d(TAG, "onStartCommand: "+intent+" "+flags);
        return START_STICKY;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
        Log.d(TAG, "onDestroy: "+this);
    }
}
